package com.yxx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxx.entity.Category;
import com.yxx.entityModel.vo.query.CategoryQuery;
import com.yxx.entityModel.vo.request.CategoryRequest;
import com.yxx.entityModel.vo.response.CategoryBackResponse;
import com.yxx.entityModel.vo.response.CategoryResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @author yuxiangxun
 * @date 2025/1/23
 * @apiNote
 */
@Repository
public interface CategoryMapper extends BaseMapper<Category> {
    /**
     * 查询分类列表
     * @return 分类列表
     */
    List<CategoryResponse> selectCategoryVO();

    /**
     * 查询后台分类列表
     * @param categoryQuery
     * @return
     */
    List<CategoryBackResponse> selectCategoryBackList(@Param("param") CategoryQuery categoryQuery);

}
